<% @hotels.each_with_index do |hotel, index| %>
    <% unless hotel.hotel_room_types.blank? and hotel.area.blank? %>
        <article>
            <header>
                <h2><a href="#"><%= hotel.hotel_name %></a></h2>
                <figure> <%= image_tag hotel.primary_picture.url(:thumb) %> <figcaption><%= index + 1 %></figcaption></figure>
                <p><span class="rating-a <%= hotel_star(hotel.stars) %>">0/5</span><%= hotel.hotel_name %> - <%= hotel.area %>, <%= hotel.district_name %> </p>
            </header>
            <%= raw(truncate( hotel.description_eng , :length => 150 ))  %>
            <% unless hotel.on_promoted == 't' %>
                <p class="scheme-d"><span>$</span><%= hotel.usd_price.to_s %> 
                <%= link_to "book", {controller: "pages", action: "hotel_detail", hid: hotel.id} %></p>
            <% else %>
                <p class="scheme-d"><span>$</span><%= hotel.promo_price %><span class="a"><span>$</span><%= hotel.usd_price %></span><%= link_to "book", {controller: "pages", action: "hotel_detail", hid: hotel.id} %></p>
            <% end %>
            <footer>
                <p>User Rating <span class="rating-b d">4/5</span></p>
             <!--    <p class="link-b"><a href="./">View Details</a></p> -->
            </footer>
        </article>
    <% end %>
<% end %>
<!-- <img src="/uploads/hotel/49/thumb_article-2138828-12E6A6ED000005DC-172_964x720.jpg "> -->